﻿function ShowAssignDialog(guid, versionId) {

    $ModalDialog = CreateModalDialog('Manual Assignment');
    $ModalDialog.find(".modalContent").css('width', '990px');
    $ModalDialog.find(".modalContent").css('height', '550px');
    $ModalDialog.find(".modalInnerContent").load("ChangeAssignment", { assignmentGuid: guid, assignmentVersionId: versionId });

    $("body").append($ModalDialog);

    ResizeModalDialog();
}

function SetUser(row) {
    $("#assignedUser").val($(row).attr("id"));
    $("tr.selected").removeClass("selected");
    $(row).addClass("selected");
}

function SetVisitDate(date) {
    $("#plannedDate").val(date);
}
